import http from './http'

const post = (url, data = {}) =>
  http.post(
    url,
    Object.assign(
      data
    )
  )
const get = (url, params = {}) =>
  http.get(
    url,
    Object.assign(
      params
    )
  )

const getLanguage = params => get('static/file/zh-CN.json', params)
const getEnUsLanguage = params => get('static/file/en-US.json', params)
//接口导出
export {
  getLanguage,
  getEnUsLanguage
}
